package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class Process extends BaseEntity {
    /** 项目过程ID */
    private Integer id;
    /** 项目ID */
    private Integer projectFundId;
    @Excel(name = "项目名称")
    private String name;
    @Excel(name = "金额")
    private BigDecimal amount;
    @Excel(name = "代理商名称")
    private String agentName;
    @Excel(name = "客户名称")
    private String clientName;
    //省份 用来做数据权限
    private String province;
    @Excel(name = "院系名称")
    private String facultyName;
    @Excel(name = "联系人职务")
    private String contactJob;
    @Excel(name = "联系人名称")
    private String contactName;
    @Excel(name = "联系人电话")
    private String contactPhone;
    @Excel(name = "决策人职务")
    private String decisionJob;
    @Excel(name = "决策人名称")
    private String decisionName;
    @Excel(name = "决策人电话")
    private String decisionPhone;
    @Excel(name = "进度",dictType = "sys_project_schedule")
    private Long schedule;
    @Excel(name = "当前进度日期",dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date nowDate;
    /** 逻辑删除字段 */
    private Integer delFlag;

    private Date startDate;
    private Date endDate;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /** 当前用户部门ID */
    private Integer deptId;
    /** 用户ID */
    private Integer userId;
    /** 用于接收该用户及夏季用户姓名（用户名）  */
    private List<String> childrenOrMine;

    /** 排序 */
    private String sort;
}
